﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HomeWork11
{
    class TestContext : DbContext
    {
        public TestContext() : base("TestDataBase")
        {
            Database.SetInitializer(
              new DropCreateDatabaseIfModelChanges<TestContext>());
        }
        public DbSet<Book> Books { get; set; }
        public DbSet<BookList> BookLists { get; set; }
    }
}
